package sg.edu.nus.iss.vmcs.customer;

import java.awt.Panel;
import java.awt.event.ActionListener;

public abstract class ProductSelectionItem extends Panel {

	/**
	 * Generated serial version uid
	 */
	private static final long serialVersionUID = 7907951550201660119L;

	/**
	 * This operation activates or deactivates the product selection item button.
	 * This operation also displays OUT OF STOCK messages where appropriate
	 * 
	 * @param active
	 *            Boolean to indicate whether the product selection item button is
	 *            active
	 */
	public abstract void setItemState(boolean active);
	
	/**
	 * This operation sets the name on the Product Selection Item
	 * 
	 * @param name
	 *            The name
	 */
	public abstract void setName(String name);
	
	/**
	 * This operation sets the price on the Product Selection Item
	 * 
	 * @param price
	 *            The price
	 */
	public abstract void setPrice(int price);

	public abstract void addListener(ActionListener actionListener);

}
